/*

  Implementacion de la clase Weight

*/

#include "weight.hpp"
 
	// Constructor por default
	Weight::Weight() {
		this->velocity = DEFAULT_VELOCITY;
		this->length = DEFAULT_LENGTH;
	}
	
	Weight::Weight(float velocity, float length){
		this->velocity = velocity;
		this->length = length;
	}

	float Weight::getVelocity(){
		return this->velocity;
	}

	float Weight::getLength(){
		return this->length;
	}

	void Weight::setVelocity(float velocity){
		this->velocity= velocity;
	}

	void Weight::setLength(float length){
		this->length = length;
	}

	Weight& Weight::operator=(Weight &original){
		this->velocity = original.getVelocity();
		this->length = original.getLength();
		return *this;
	}
    
    int Weight::operator==(Weight &original){
        return (this->velocity == original.getVelocity() && this->length == original.getLength());
    }

    int Weight::operator!=(Weight &original){
        return (this->velocity != original.getVelocity() || this->length != original.getLength());
    }

	Weight::~Weight(){}
